package com.ruoyi.clf.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * 积分商城商品对象 integral_goods
 * 
 * @author 常龙飞
 * @date 2025-05-12
 */
@Document(indexName = "integral_goods") // 全小写索引名
public class IntegralGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品简介 */
    @Excel(name = "商品简介")
    private String goodsDesc;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String goodsDetail;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String goodsImage;

    /** 兑换所需积分 */
    @Excel(name = "兑换所需积分")
    private Long exchangeIntegral;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stock;

    /** 累计销量 */
    @Excel(name = "累计销量")
    private Long salesVolume;

    /** 商品状态(1-上架,0-下架) */
    @Excel(name = "商品状态(1-上架,0-下架)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setGoodsDetail(String goodsDetail) 
    {
        this.goodsDetail = goodsDetail;
    }

    public String getGoodsDetail() 
    {
        return goodsDetail;
    }

    public void setGoodsImage(String goodsImage) 
    {
        this.goodsImage = goodsImage;
    }

    public String getGoodsImage() 
    {
        return goodsImage;
    }

    public void setExchangeIntegral(Long exchangeIntegral) 
    {
        this.exchangeIntegral = exchangeIntegral;
    }

    public Long getExchangeIntegral() 
    {
        return exchangeIntegral;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    public void setSalesVolume(Long salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public Long getSalesVolume() 
    {
        return salesVolume;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsName", getGoodsName())
            .append("goodsDesc", getGoodsDesc())
            .append("goodsDetail", getGoodsDetail())
            .append("goodsImage", getGoodsImage())
            .append("exchangeIntegral", getExchangeIntegral())
            .append("stock", getStock())
            .append("salesVolume", getSalesVolume())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
